package pl.ivmx.seam.seamsamp;



import java.io.Serializable;

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Remove;
import javax.ejb.Stateful;

import javax.ejb.Stateless;




import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.JndiName;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Name("bean3")
@Scope(ScopeType.SESSION)
@Stateful (name="ClientBean", mappedName="AppEar/ClientBean")
@JndiName("AppEar/ClientBean#pl/ivmx/seam/seamsamp/ClientRemote")
@Remote(ClientRemote.class)
@Local (ClientLocal.class)
public class ClientBean implements Serializable, ClientRemote, ClientLocal
{

  
   /**
	 * 
	 */
	private static final long serialVersionUID = 1574990141095065249L;

	private String text;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	public String register(){
		return "";
	}
	

	 @Remove
	 	public void removeUserek(){
//		 Client tmp= em.find(Client.class, c.getId() ); //) createQuery("SELECT w from Worker as w where w.id = :idek");
//		 //query.setParameter("idek", worker.getId());
//	        //System.out.println("PRACA workera: " +worker.getStanowisko().getId() + worker.getStanowisko().getStanowisko());
//		// Worker tmp =  (Worker)query.getSingleResult();
//	       if (tmp == null)
//	    	   return;
//	       em.remove(tmp);
	 		
	 	}

   
}
